package dd.prog2.exercises.set06;

public class Locomotive {
	private int type;
	private int length;
	private Car first = null;

	public Locomotive(int type, int length) {
		this.type = type;
		this.length = length;
	}

	public int getLength() {
		return this.length;
	}

	public int getType() {
		return this.type;
	}

	public Car getFirst() {
		return this.first;
	}

	public void setFirst(Car c) {
		this.first = c;
	}

}
